var mongoose = require('../index');
var Provider = require('./Provider');

const config = require('./config');
var Stringify = mongoose.Schema.Formatter.Stringify
var ObjectId = mongoose.Schema.Types.ObjectId

mongoose.connect(config.mysql, { });

let condition = {
    _id: '1',
    providerType: 2
};
let update = {
    $set: {mustImage: {"i1":["102","104","105"]}}
};

Provider.findOneAndUpdate(condition,update,function(err,result){
    console.log(err);
    console.log(result);
});
